package master.photo.propertyeditor;

import master.photo.domain.security.UserRole;

import org.springframework.beans.PropertyEditorRegistrar;
import org.springframework.beans.PropertyEditorRegistry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class GPhotoPropertyEditorRegistrar implements PropertyEditorRegistrar {
	
	@Autowired
	private UserRolePropertyEditor userRolePropertyEditor;
	
	public GPhotoPropertyEditorRegistrar() {
		super();
	}

	@Override
	public void registerCustomEditors(PropertyEditorRegistry registry) {
		registry.registerCustomEditor(UserRole.class, userRolePropertyEditor);
	}

}
